import { createRouter, createWebHashHistory } from 'vue-router';

const vueRouter = createRouter({
    history: createWebHashHistory(),
    routes: [
		{
			path:'/index',
			component:()=>import(/* webpackChunkName: "index" */ '../pages/index.vue'),
			meta:{title:'首页'},
			name:'index'
		},
		{
			path:'/intelligence',
			component:()=>import(/* webpackChunkName: "intelligence" */ '../pages/intelligence.vue'),
			meta:{title:'智能管控'},
			name:'intelligence'
		},
        {
			path:'/scene',
			component:()=>import(/* webpackChunkName: "scene" */ '../pages/scene.vue'),
			meta:{title:'场景管控'},
			name:'scene'
		},
        {
			path:'/emergency',
			component:()=>import(/* webpackChunkName: "emergency" */ '../pages/emergency.vue'),
			meta:{title:'应急处置'},
			name:'emergency'
		},
        {
			path:'/map',
			component:()=>import(/* webpackChunkName: "statistics" */ '../pages/map.vue'),
			meta:{title:'定位地图'},
			name:'map'
		},
		{
			path:'/statistics',
			component:()=>import(/* webpackChunkName: "statistics" */ '../pages/statistics.vue'),
			meta:{title:'统计分析'},
			name:'statistics'
		},
        {
            path: '/',
            redirect: '/index'
        },
    ]
});
export default vueRouter;


